package com.zxl.feign;

import com.zxl.vo.Customer;
import com.zxl.vo.User;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;


@FeignClient(
        value = "user",
        path = "/user"
)
public interface UserFeign {

    @RequestMapping("/checkUsername")
    User checkUsername(@RequestParam("param") String param);

    @RequestMapping("/add")
    Customer reg(@RequestBody Customer customer);

    @RequestMapping("/findByoauthId")
    Customer findByoauthId(@RequestParam("oauthId") String oauthId);
}
